home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16086 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  65 lines

  1. Path: www.rpa.net!news
  2. From: Fred Mellender <fredm@rpa.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: stl difficulties when target is Win 3.x
  5. Date: Tue, 09 Apr 1996 09:05:07 -0400
  6. Organization: Rochester Public Access, Inc.
  7. Message-ID: <316A6083.5550@rpa.net>
  8. NNTP-Posting-Host: pm1-ip43.rpa.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.01 (Win95; I)
  13. CC: moore@tdl.com
  14.  
  15. Hi,
  16. It would seem that BC 5.0 has difficulty compiling the stl header
  17. for "vector", when the target is Win 3.x, but not when target is
  18. W32, as Mr. Moore has discovered. I am running BC 5.0 under W95.
  19. The following is a reply to his email/news posting on this subject:
  20.                 --
  21.  
  22. Hello Mr. Moore:
  23.  
  24. Well the 16bit compiler is a completely different beast from the
  25. 32bit one.  Here are the parameters I used, via "New Target" screen:
  26.     Application Type: Application (.exe)
  27.     Platform: Windows 3.x {16]
  28.     Target Model: Large
  29.     Frameworks:    OWL
  30.     Libraries:    Dynamic
  31.  
  32.     Initial Notes:    .cpp Node (only)
  33.  
  34. The program:
  35.  
  36. #include <vector>
  37. using namespace std;
  38.  
  39. vector <int> foo;
  40.                 ---
  41.  
  42. I got numerous warnings: "Conversion may lose significant digits".
  43. And, I too got the vexing:
  44.     "Access violation occurred at 0x0163a8b3: Attempt to access
  45.             0x42413938"
  46. So, we can conclude it is not a problem with your installation.
  47.  
  48. Under the "medium" model, the warnings go away, but the access
  49. violation persists.
  50.  
  51. I recommend you send a bug report to Borland, if you have the
  52. patience.
  53.  
  54. Regards,
  55.  
  56.  
  57.  
  58. Martin Moore wrote:
  59.  
  60. > But, I am surprised this problem with the STL library
  61. > isn't happening to other people. I know my project was defined as a
  62. > WIN 3.1 target..not a WIN32 target. That might be something you could
  63. > try to see if it occurs.
  64. >
  65.